/*
 * Copyright (c) 2016 moondev.cn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.moondev.moonlog.example.moonlog.monitor.entity;

import java.io.Serializable;

public class BizMonitor implements Serializable{

	private static final long serialVersionUID = 6510046438499918888L;

	  private long id;
	  /**
	   * 业务url
	   */
	  private String biz;
	  /**
	   * 系统名称
	   */
	  private String sysname;
	  /**
	   * 日志唯一编码，每次请求的日志都包含此编码
	   */
	  private String uuid;
	  /**
	   * 调用时间
	   */
	  private String invokeDate;
	  /**
	   * 调用者IP
	   */
	  private String invokeIp = "";
	  /**
	   * 执行耗时，单位毫秒
	   */
	  private int executedTime;
	  /**
	   * 提供者IP
	   */
	  private String providerIp = "";
	  /**
	   * 调用时间
	   */
	  private long invokeTime;
	  
	  /**
	   * GET or POST or ...
	   */
	  private String method;
	  /**
	   * GET请求时带的参数
	   */
	  private String params;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getBiz() {
		return biz;
	}
	public void setBiz(String biz) {
		this.biz = biz;
	}
	public String getSysname() {
		return sysname;
	}
	public void setSysname(String sysname) {
		this.sysname = sysname;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public String getInvokeDate() {
		return invokeDate;
	}
	public void setInvokeDate(String invokeDate) {
		this.invokeDate = invokeDate;
	}
	public String getInvokeIp() {
		return invokeIp;
	}
	public void setInvokeIp(String invokeIp) {
		this.invokeIp = invokeIp;
	}
	public int getExecutedTime() {
		return executedTime;
	}
	public void setExecutedTime(int executedTime) {
		this.executedTime = executedTime;
	}
	public String getProviderIp() {
		return providerIp;
	}
	public void setProviderIp(String providerIp) {
		this.providerIp = providerIp;
	}
	public long getInvokeTime() {
		return invokeTime;
	}
	public void setInvokeTime(long invokeTime) {
		this.invokeTime = invokeTime;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
	@Override
	public String toString() {
		return "BizMonitor [id=" + id + ", biz=" + biz + ", sysname=" + sysname + ", uuid=" + uuid + ", invokeDate="
				+ invokeDate + ", invokeIp=" + invokeIp + ", executedTime=" + executedTime + ", providerIp="
				+ providerIp + ", invokeTime=" + invokeTime + "]";
	}
}
